package com.supermarket.api.service;

import com.supermarket.api.bean.shop.ShopProductReq;
import com.supermarket.api.common.PageParam;
import com.supermarket.api.entity.ProductEntity;
import com.supermarket.api.entity.ShopEntity;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 店铺服务层
 * @author 李其伟
 * @date 2023/10/16
 */
public interface ShopService {

    /**
     * 前几店铺
     * @param number
     * @return
     */
    List<ShopEntity> topList(Integer number);

    /**
     * 店铺列表
     * @return
     * @param pageParam
     */
    Page<ShopEntity> list(PageParam pageParam);

    /**
     * 店铺详情
     * @param shopId
     * @return
     */
    ShopEntity detail(Long shopId);

    /**
     * 店铺下商品列表
     * @param req
     * @return
     */
    Page<ProductEntity> productList(ShopProductReq req);
}
